#ifndef AISINO_EXAM_APP
#define AISINO_EXAM_APP

#include "aisinoutils.h"
#include "configdata.h"
#include "aisinodb.h"
#include "examanswer.h"
#include "questionentry.h"

class AisinoExamApp
{
public:
    AisinoExamApp();
    ~AisinoExamApp();

public:
    bool init(const std::string& configFile);
    bool analysisAisinoExamHtml();
    void showExamSolution();

private:
    ConfigData* configData;
    ExamAnswer* examAnswer;
    AisinoDB* singleDB;
    AisinoDB* multipleDB;
    bool isInit;

private:
    void getAnswer(QuestionEntry& question_entry);

};


#endif // AISINO_EXAM_APP
